package easymall.service;

import easymall.po.Category;

import java.util.List;


public interface CategoryService {
    //根据页号获取分类
    public List<Category> getCategorysByPage(Integer page);
    public int getTotalPage();

    public List<Category> allcategorys();

    //获取总分类数
    public int getCategorysCount();

    //商品分类
    public int checkCategorysExist(String name); //检查是否存在
    public int updateCategory(Category category); //更新
    public int saveCategory(String name);  //新增
    public int delCategory(Integer id); //删除某个类别
}
